using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.OleDb;
using DAO;
using DTO;

namespace BUS
{
    public class LoaiPhongBUS
    {
        public DataTable LayBang()
        {
            LoaiPhongDAO lpdao=new LoaiPhongDAO();
            DataTable dt = lpdao.LayBang();
            return dt;
        }
        public DataTable TraCuuLoaiPhong(string tenlp)
        {
            LoaiPhongDAO lpdao = new LoaiPhongDAO();
            return lpdao.TraCuuLoaiPhong(tenlp);
        }
        public void Them(LoaiPhongDTO lpdto)
        {
            LoaiPhongDAO lpdao = new LoaiPhongDAO();
            lpdao.Them(lpdto);
        }
        public void Sua(LoaiPhongDTO lpdto)
        {
            LoaiPhongDAO lpdao = new LoaiPhongDAO();
            lpdao.Sua(lpdto);
        }
        public void Xoa(int malp)
        {
            LoaiPhongDAO lpdao = new LoaiPhongDAO();
            lpdao.Xoa(malp);
        }
    }
}
